package com.wanpinghui.wphlibrary.model.oauth;

import com.wanpinghui.wphlibrary.model.base.bean.AppInfoBean;
import com.wanpinghui.wphlibrary.model.oauth.bean.LoginResponseBean;
import com.wanpinghui.wphlibrary.model.oauth.bean.UserBean;
import com.wanpinghui.wphlibrary.model.oauth.bean.UserInformation;

import retrofit.callback.YRequestCallback;

/***
 * 功能描述:
 * 作者:qiujialiu
 * 时间:2017/11/22
 ***/

public interface OAuthService {
    void sendLoginCode(String mobile, YRequestCallback callback);

    void login(String mobile, String code, YRequestCallback<LoginResponseBean> callback);

    /**
     * 工程商认证
     * @param nickName
     * @param gender
     * @param address
     * @param company
     * @param position
     * @param callback
     */
    void certifySupplier(String nickName, int gender, String address, String company, String position, YRequestCallback<UserBean> callback);

    UserBean getUserInfo(YRequestCallback<UserBean> callback);

    String getToken();

    void logout();

    int getUserId();

    void getUserInfoFromS(YRequestCallback<UserBean> callback);
}
